package org.springcloud.wisdom.springcloud_03_freshman.student.service;

import org.springcloud.wisdom.springcloud_03_freshman.student.dao.DeptDao;
import org.springcloud.wisdom.springcloud_03_freshman.student.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {
    @Autowired
    DeptDao deptDao;
    public List<Dept> getDeptAll(){
        return deptDao.getAll();
    }
}
